package com.lsh.util.result;

/**
 * @author Administrator
 * @date 2019/10/28 16:29
 */
public enum BaseResult{

    SUCCESS(2001, "请求成功"),
    FAIL(2002, "请求失败"),
    TOKEN_EXPIRED(3002, "TOKEN已过期"),
    UNAUTHORIZED(3003, "未登录");

    private Integer code;
    private String message;

    BaseResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
